package com.homework05;

public class Rectangle implements Ishape {

	private int line1;
	private int line2;
	private int line3;
	private int height1;
	private int height2;
	private int height3;

	public Rectangle(int line1, int line2, int line3, int height1, int height2, int height3) {
		this.line1 = line1;
		this.line2 = line2;
		this.line3 = line3;
		this.height1 = height1;
		this.height2 = height2;
		this.height3 = height3;
	}

	@Override
	public int getPerimeter() {
		return line1 + line2 + line3;
	}

	@Override
	public int getArea() {
		return line1 * height1 / 2;
	}
}
